$NG.AllReady(function (page,{useClick,useAfterClick,useBeforeClick}) {
    const dgrid1 = $NG.getCmpApi("p_form_htq_d1")
    console.log('detail Ready');
    // 手动增行逻辑
    useAfterClick((args)=>{
        const rows = dgrid1.getRows()
        rows[rows.length - 1].u_add = '1'
        dgrid1.refreshView()
    },"add")

    // 删除行(禁止删除导入)
    useBeforeClick((args)=>{
        console.log(`args`,args);
        const checkrows = dgrid1.getRows()
        if(args.containerId == 'p_form_htq_d1'){
            
        }
    },"deleterow")
    
}, function () {
    console.log('list Ready');
});